<?php

function post_meta_sidebar_module($args) {
	extract($args);

	if(is_single()) {
		echo($before_module . $before_title . $title . $after_title);
		?>
			<ul>
				<?php if(function_exists('the_views')) { ?>
					<li><?php the_views(); ?></li>
				<?php } ?>
				<?php if(function_exists('mdv_post_word_count')) { ?>
					<li><?php mdv_post_word_count(true); ?> words</li>
				<?php } ?>
				<?php if(function_exists('the_ratings')) { ?>
					<li>Rating:</li>
				<?php } ?>
			</ul>
			<?php if(function_exists('the_ratings')) { ?>
				<?php the_ratings(); ?>
			<?php } ?>
		<?php
		echo($after_module);
	}
}

if(function_exists('the_ratings')) {
	register_sidebar_module('Post Meta', 'post_meta_sidebar_module', 'sb-related');
}

?>
